package titt.config;

import java.nio.charset.Charset;

public class ValueConfig {
	private static ValueConfig vc = new ValueConfig();
	
	private final int buffer_size = 5 * 1024; 
	

	private int port = 8080, beat = 60;
	private String host = "localhost";

	
	private Charset c = Charset.forName("UTF-8");
	
	protected ValueConfig() {}
	
	public static ValueConfig get() {
		return vc;
	}
	
	public int getHeartBeatInterval() {
		return beat;
	}
			
	public int getBufferSize() {
		return buffer_size;
	}
		
	public void setPort(int port) {
		this.port = port;
	}

	public int getPort() {
		return port;
	}

//	public void setPort(int persistent_port) {
//		this.persistent_port = persistent_port;
//	}

//	public int getPersistentPort() {
//		return persistent_port;
//	}

	public void setHost(String host) {
		this.host = host;
	}

	public String getHost() {
		return host;
	}

	public void setCharset(Charset c) {
		this.c = c;
	}

	public Charset getCharset() {
		return c;
	}


}
